<style>
	.tableheader
	{
		font-weight:bold;
		text-decoration:underline;
	}
	img{
	border:0px
	}
</style>
<cfif isdefined("url.id")>
	<cfquery name="qtable" dbtype="query">
SELECT *
	from session.qtables
	where id = '#url.id#'
	</cfquery>
	<cfset idvalue = qtable.id />
	<cfelse>
	<cfset idvalue = 0 />
	<cfset qtable = QueryNew("id,object,pk,dbtype") />
</cfif>
<cfoutput>
	<a href="index.cfm">Back to the main page</a> <br />
	<br />
	<br />
	<form action="savetable.cfm" method="post">
		<input type="hidden" name="id" value="#idvalue#" />
		Object:
		<input type="text" name="object" value="#qtable.object#" />
		<br />
		pk:
		<input type="text" name="pk" value="#qtable.pk#" />
		<br />
		dbtype:
		<select name="dbtype">
			<option <cfif qtable.dbtype eq "mssql">selected="selected"</cfif>>mssql</option>
			<option <cfif qtable.dbtype eq "oracle">selected="selected"</cfif>>oracle</option>
			<option <cfif qtable.dbtype eq "mysql">selected="selected"</cfif>>mysql</option>
			<option <cfif qtable.dbtype eq "postgres">selected="selected"</cfif>>postgres</option>
		</select>
		<br />
		<input type="submit" value="Save"/>
	</form>
</cfoutput>